Skip to content

gh-142349: Update lazy imports C API and sys.flags documentation - #158966

Merged
DinoV merged 1 commit into
python:mainfrom
brittanyrey:b-lazy-imports-docs
Oct 21, 2026
Merged

DinoV merged 1 commit into
python:mainfrom
brittanyrey:b-lazy-imports-docs

Conversation

@brittanyrey

@brittanyrey brittanyrey commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Replace the PyImport_SetLazyImportsMode() description, which is a duplicate of from PyImport_ImportModuleAttrString(), and document the sys.flags.lazy_imports attribute.

Replace the PyImport_SetLazyImportsMode() description, which was copied
from PyImport_ImportModuleAttrString(), and document the
sys.flags.lazy_imports attribute.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34994194 | 📁 Comparing 6fc7d09 against main (1610807)

  🔍 Preview build  

2 files changed
± c-api/import.html
± library/sys.html

@brittanyrey

Copy link
Copy Markdown
Contributor Author

Just came across a related PR: #155281

@brittanyrey brittanyrey added the needs backport to 3.15 bugs and security fixes label Oct 13, 2026
@brittanyrey
brittanyrey requested a review from DinoV October 13, 2026 15:29

@DinoV DinoV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@DinoV
DinoV merged commit 867d16e into python:main Oct 21, 2026
39 of 45 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 21, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @brittanyrey for the PR, and @DinoV for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160110 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
@brittanyrey
brittanyrey deleted the b-lazy-imports-docs branch October 22, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news type-feature A feature request or enhancement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants